package com.zuxia.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author laoli
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Commission对象", description="")
@ToString
public class Commission implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "佣金明细编号")
    @TableId("commission_id")
    private String commissionId;

    @ApiModelProperty(value = "会员id")
    private String userId;

    @ApiModelProperty(value = "佣金收支（多少钱）")
    private BigDecimal commissionMoney;

    @ApiModelProperty(value = "佣金收支状态（0-订单未完成收益路上未到账，1-订单完成收益到账，2-订单售后退货收益失效）")
    private Integer commissonStatus;

    @ApiModelProperty(value = "订单id")
    private String orderId;

    @ApiModelProperty(value = "佣金收入时间（已完成的订单，未完成的默认为null）")
    private String commissionTime;

    @ApiModelProperty(value = "佣金入账状态（默认为待入账-0，添加到收支表后入账-1，未入账-2）")
    private Integer commissionAddStatus;
}
